<%-- 
    Document   : insertarsemestre
    Created on : 22/02/2013, 03:53:57 PM
    Author     : Duber Hugo Troncos Siancas(duberhugo3@hotmail.com)
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
 
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="jquery-ui-1-2/development-bundle/themes/ui-lightness/jquery.ui.all.css" />
 <script src="jquery-ui-1-2/development-bundle/jquery-1.7.2.js"></script>
    <script src="jquery-ui-1-2/development-bundle/ui/jquery.ui.core.js"></script>
    <script src="jquery-ui-1-2/development-bundle/ui/jquery.ui.widget.js"></script>
    <script src="jquery-ui-1-2/development-bundle/ui/jquery.ui.datepicker.js"></script>
    <link rel="stylesheet" href="jquery-ui-1-2/development-bundle/demos/demos.css" />
        <title>JSP Page</title>
    </head>
    <body>
            <script>
        $(function() {
        $( "#from" ).datepicker({  
         defaultDate: "+1w",
         changeMonth: true,
         numberOfMonths: 1,
         onSelect: function( selectedDate ) {
         $( "#to" ).datepicker( "option", "minDate", selectedDate );
       }
     });
      $( "#to" ).datepicker({ 
      defaultDate: "+1w",
      changeMonth: true,
      numberOfMonths: 1,
      onSelect: function( selectedDate ) {
      $( "#from" ).datepicker( "option", "maxDate", selectedDate );
     }
    });
    });
   </script>
        <center>
            <form method="post" action="controlador?operacion=guardarsemestre">    
             <h1>Insercion de Semestres</h1><br/>
             <table id="tabla" align="center">
                 <tr>
                     <td>Codigo</td>
                     <td><input type="text" name="txtcodigo"/></td>
                 </tr>
                 <tr>
                     <td>Fecha Inicio</td>
                     <td><input type="text" name="txtfinicio"/></td>
                 </tr>   
                 <tr>
                     <td>Fecha Fin</td>
                     <td><input type="text" name="txtffin"/></td>
                 </tr>   
                 <tr>
                     <td>Vigencia</td>
                     <td><input type="text" name="txtvigencia"/></td>
                 </tr>
                 <tr>                    
                     <td align="center"colspan="2"><input type="submit" value="Enviar"/></td>
                 </tr>
            </table>
               </form>
        </center>
    </body>
</html>
